<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE HTML>
<ui:composition template="/dinamic/template/template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
	<ui:define name="menu">
		<ui:include src="/dinamic/template/menuAdministrador.xhtml" />
	</ui:define>
	
	<ui:define name="conteudo">
  		<h:form style="text-align: center">
  		
  			<p:dataTable var="assunto" value="#{assuntoManagedBean.listaAssuntos}">
  			
  			<f:facet name="header">
  			 Lista de Assunto
  			</f:facet>
  			
  			<p:column headerText="ID">
  				<h:outputText value="#{assunto.idAssunto}" />
  			</p:column>
  			
  			<p:column headerText="Nome">
  				<h:outputText value="#{assunto.nomeAssunto}" />
  			</p:column>
  			
  			<p:column headerText="Descricao" style="max-width: 200px; min-width: 200px; overflow: hidden">
  				<h:outputText value="#{assunto.descricao}" />
  			</p:column>
  			
  			</p:dataTable>
  			
  			<p:separator/>
  			  		
  		</h:form>
	</ui:define>
</ui:composition>